package org.ecshop.models;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * SearchEngine entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="ecs_searchengine"
    
)

public class SearchEngine  implements java.io.Serializable {


    // Fields    

     private SearchEngineId id;
     private Integer count;


    // Constructors

    /** default constructor */
    public SearchEngine() {
    }

    
    /** full constructor */
    public SearchEngine(SearchEngineId id, Integer count) {
        this.id = id;
        this.count = count;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="date", column=@Column(name="date", nullable=false, length=10) ), 
        @AttributeOverride(name="searchengine", column=@Column(name="searchengine", nullable=false, length=20) ) } )

    public SearchEngineId getId() {
        return this.id;
    }
    
    public void setId(SearchEngineId id) {
        this.id = id;
    }
    
    @Column(name="count", nullable=false)

    public Integer getCount() {
        return this.count;
    }
    
    public void setCount(Integer count) {
        this.count = count;
    }
   








}